import host from "../config"
export const HOME = {//HOME模块
	// carousel: host.server_url + '/consumerapi/home/carousel', //轮播图
	// homeSearch: host.server_url + '/consumerapi/home/search', //用户搜索
  servicesList: host.server_url + 'register/verify', //验证码
  login: host.server_url + 'login/mobile', //登录
  version:host.server_url + 'about/version', //获取版本号
  wxLogin:host.server_url + 'login/wxapp', //微信登录
  bindwx:host.server_url + 'banding', //微信绑定
}

export const PYTAT = {//我的
	getlist: host.server_url + 'masseuseInfo/get', //个人信息
	getserve: host.server_url + 'service/page', //查看所有服务
	// projectclick: host.server_url + 'service/link', //关联服务
	preserve: host.server_url + 'masseuseInfo/modify', //保存图片
	customeraddress: host.server_url + 'address/list', //用户地址列表
	inputsite: host.server_url + 'city_list', //地址
	retreat: host.server_url + 'auth/logout', //退出
	address: host.server_url + 'address/edit', //添加地址
	shippingdelete: host.server_url + 'address/del', //删除地址
	moren: host.server_url + 'address/default/set', //设为默认地址
	getredact: host.server_url + 'address/detail', //地址详情
	addconfirm: host.server_url + 'address/edit', //编辑地址
	// getmywallet: host.server_url + 'account/bill', //账单信息
	ordeformsubmit: host.server_url + 'order/cancelOrder', //服务取消订单
	radioChange: host.server_url + 'order/refundAmount', //服务取消订单计算金额
	accountinfo: host.server_url + 'account/info', //账户信息
	getdetails: host.server_url + 'account/billDetail', //账户详情
	gettype: host.server_url + 'masseuseInfo/masseuseType', //技师类型
	getstatus: host.server_url + 'masseuseInfo/statusInfo', //技师状态
	getagreement: host.server_url + 'about/app/source', //用户协议
	maskClick: host.server_url + 'account/bill', //选择时间
}

export const ORDER = {//订单模块
	tabs: host.server_url + 'order/page', //服务订单
    Immediately: host.server_url + 'order/operation', //立即接单
	getorderlist: host.server_url + 'order/list', //订单列表
	getserviceorder: host.server_url + 'order/page', //订单列表
	getordeform: host.server_url + 'order/getRule', //取消订单
	
 
}

export const ORDERS = {//首页
	offline: host.server_url + 'sign/out', //下线
    confirms: host.server_url + 'sign/in', //上线
	homeluobo: host.server_url + 'home/index', //上线
	tabhome: host.server_url + 'home/order', //服务订单
	acknowledgealarm: host.server_url + 'home/dowarn', //报警
	checkToken: host.server_url + 'token/verify', //验证token是否过期
	today: host.server_url + 'sign/get', //时间回显
}

export const SHANGC = {//商城
	getshoppinglist: host.server_url + 'category', //商品列表
	handclick: host.server_url + 'products', //商品列表
    commoditydetails: host.server_url + 'product/detail', //商品详情
	getItem: host.server_url + 'product/detail', //上线
	shoppurchase: host.server_url + 'cart/add', //添加购物车
	getpostage: host.server_url + 'order/computed', //计算订单金额
	createOrder: host.server_url + 'order/create', //创建订单
	cancelOrder: host.server_url + 'order/cancel', //取消订单
	refund: host.server_url + 'applyForAfterSales',//待付款状态取消订单
	getlineitem: host.server_url + 'order/detail', //订单详情
	getshoppingtrolley: host.server_url + 'cart/list', //购物车列表
	orderConfirm: host.server_url + 'order/confirm', //确认订单
	cartnum: host.server_url + 'cart/num', //确认订单
	gotoPay: host.server_url + 'order/pay', //待付款订单支付
	orderTake: host.server_url + 'order/take', //确认收货
	itemDelClick: host.server_url + 'cart/del', //购物车删除
	orderDel:host.server_url + 'order/del', //订单删除
	shopsearch:host.server_url + 'products', //搜索
}
// export const USER = {//我的模块
//   userLogin:host.server_url + '/consumerapi/wxapp/login', //微信小程序登录
//   bindPhone:host.server_url + '/consumerapi/user/bindphone', //绑定手机号
// 	userInfo: host.server_url + '/consumerapi/wxapp/userinfo', //用户基本信息 用户头像 用户昵称 登录账号 用户余额
//   userExtend: host.server_url + '/consumerapi/user/extend', //用户其他信息 我的首次和我的优惠券
//   rechargeList: host.server_url + '/consumerapi/user/recharge', //充值列表 返回余额和充值列表
//   collection: host.server_url + '/consumerapi/user/collection', //收藏
//   collectionList: host.server_url + '/consumerapi/user/collection/page', //收藏列表
//   coupon: host.server_url + '/consumerapi/user/coupon', //优惠券
//   couponList: host.server_url + '/consumerapi/user/coupon/page', //优惠券列表
//   hotRecommend: host.server_url + '/consumerapi/user/hotrecommend', //热门推荐
// }
